'use strict';


module.exports = app => {
  const { router, controller } = app;

  // 用户类的路由
  router.post('/members/save', controller.members.save);
  router.post('/members/info', controller.members.info);
  router.post('/members/login', controller.members.login);
  router.post('/members/update', controller.members.update);

  // 笔记类路由
  router.post('/articles/list', controller.articles.list);
  router.post('/articles/save', controller.articles.save);
  router.post('/articles/info', controller.articles.info);
  router.post('/articles/update', controller.articles.update);
  router.post('/articles/delete', controller.articles.delete);
};

